package com.dormitory123.millet.service;

import com.dormitory123.millet.pojo.Cart;
import com.dormitory123.millet.pojo.Order;
import com.dormitory123.millet.pojo.OrderItem;
import com.sun.org.apache.xpath.internal.operations.Or;

import java.util.List;
import java.util.Map;

/**
 * @author yanhuanzhan
 * @date 2022/1/6 - 19:42
 */
public interface OrderService {
    public Order createOrder(Cart cart, Integer userId);

    public List<Order> queryOrdersByUserId(Integer userId);
    public List<OrderItem> queryOrderItemByOrderId(String orderId);

    public Map<String, List<OrderItem>> queryOrderItems(List<Order> orders);
 }
